package com.pap.car.agent.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * @JsonInclude(Include.NON_EMPTY)
 * 	如果children节点没有子集，则json化的时候，忽略显示
 * @author alexgaoyh
 *
 */
@JsonInclude(Include.NON_EMPTY)
public class CarInfoTreeDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;
	
	private String name;
	
	private String parentId;
	
	private String typeFlag;
	
	private String bigTypeFlag;
	
	private String clientLicenseId;
	
	private List<CarInfoTreeDTO> children = new ArrayList<CarInfoTreeDTO>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getTypeFlag() {
		return typeFlag;
	}

	public void setTypeFlag(String typeFlag) {
		this.typeFlag = typeFlag;
	}

	public String getBigTypeFlag() {
		return bigTypeFlag;
	}

	public void setBigTypeFlag(String bigTypeFlag) {
		this.bigTypeFlag = bigTypeFlag;
	}

	public String getClientLicenseId() {
		return clientLicenseId;
	}

	public void setClientLicenseId(String clientLicenseId) {
		this.clientLicenseId = clientLicenseId;
	}

	public List<CarInfoTreeDTO> getChildren() {
		return children;
	}

	public void setChildren(List<CarInfoTreeDTO> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return "CarInfoTreeDTO [id=" + id + ", name=" + name + ", parentId=" + parentId + ", typeFlag=" + typeFlag
				+ ", bigTypeFlag=" + bigTypeFlag + ", clientLicenseId=" + clientLicenseId + ", children=" + children
				+ "]";
	}
	
}
